<template>
  <div>
    <h1><slot></slot></h1>

    <mutations1>通过 commit 访问 mutations</mutations1>
    <mutations2>mutations → 组件的 methods</mutations2>
  </div>
</template>

<script>
import Mutations1 from './Mutations1.vue'
import Mutations2 from './Mutations2.vue'

export default {
  name: 'Mutations',
  components: {
    Mutations1,
    Mutations2
  }
}
</script>
